import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

class LoadingWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      child: Scaffold(
        body: SpinKitCircle(
          size: ScreenUtil().setHeight(180),
          itemBuilder: (BuildContext context, int index) {
            return DecoratedBox(
                decoration: BoxDecoration(
                  color: index.isEven ? Theme.of(context).primaryColor : Colors.white70,
                ));
          },
        ),
      ),
    );
  }
}
